package org.keyyond.ms.gateway.dao;

import java.util.List;

import org.keyyond.ms.gateway.mapper.MsZuulConfigMapper;
import org.keyyond.ms.gateway.mapper.MsZuulConfigMapper;
import org.keyyond.ms.gateway.model.MsZuulConfig;
import org.keyyond.ms.gateway.util.BaseDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MsZuulConfigDao extends BaseDao<MsZuulConfig> {

	@Autowired
	MsZuulConfigMapper zuulConfigMapper;
	
	public int deleteByPrimaryKey(String seqno)
	{
		return zuulConfigMapper.deleteByPrimaryKey(seqno);
	}

	public int insert(MsZuulConfig record)
    {
    	return zuulConfigMapper.insert(record);
    }

	public int insertSelective(MsZuulConfig record)
    {
    	return zuulConfigMapper.insertSelective(record);
    }

	public MsZuulConfig selectByPrimaryKey(String seqno)
	{
		return zuulConfigMapper.selectByPrimaryKey(seqno);
	}

	public int updateByPrimaryKeySelective(MsZuulConfig record)
	{
		return zuulConfigMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(MsZuulConfig record)
	{
		return zuulConfigMapper.updateByPrimaryKey(record);
	}

	public List selectByEnabled(Boolean enabled)
	{
		MsZuulConfig mzc = new MsZuulConfig();
		mzc.setEnabled(enabled);
		return zuulConfigMapper.selectByEnabled(mzc);
	}
}
